﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


using MBS.UserControls.CinemaUserControl;
using MBS.UserControls.ScreenUserControl;

namespace MBS
{
    public partial class ScreenView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                

            }

            ViewScreenUserControl1.RemoveScreenSuccesull += new ViewScreenUserControl.RemoveScreenHandler(ViewScreenUserControl1_RemoveScreenSuccesull);
            ViewScreenUserControl1.RemoveScreenFailed += new ViewScreenUserControl.RemoveScreenHandler(ViewScreenUserControl1_RemoveScreenFailed);
        }

        void ViewScreenUserControl1_RemoveScreenFailed()
        {
            string x = "Screen Removed Failed";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }

        void ViewScreenUserControl1_RemoveScreenSuccesull()
        {
            string x = "Screen Removed Succedded";

            ClientScript.RegisterStartupScript(this.GetType(), "sad", "javascript:showAlert('" + x + "')", true);
        }


    }
}